stream: make null an invalid chunk to write in object mode#6170
stream: make null an invalid chunk to write in object mode#6170calvinmetcalf wants to merge 1 commit intonodejs:masterfrom
Conversation
7f3a0cb to
85454ee
Compare
|
@calvinmetcalf mind linking to the discussion for posterity? |
|
Yeah which reminds me I have to figure out how to post that On Tue, Apr 12, 2016, 4:23 PM Jeremiah Senkpiel notifications@github.com
|
|
Few nits, but otherwise LGTM |
lib/_stream_writable.js
Outdated
There was a problem hiding this comment.
I would add an explanation on the validation rules on before this function.
There was a problem hiding this comment.
this somewhat implies I 100% understand the current validation rules 😕
|
LGTM. Even though it's a major change, I will run it through CITGM, we should have no breakage. You might also give a spin to the benchmarks, just to check if there any regression (I had some unexpected surprises in the past). |
85454ee to
94e0df5
Compare
|
ok fixed the nits and also reordered the checks to make them more clear and added the note |
lib/_stream_writable.js
Outdated
There was a problem hiding this comment.
very minor nit: capitalize Always, add punctuation at the end.
|
LGTM again :) |
this harmonizes behavior between readable, writable, and transform streams so that they all handle nulls in object mode the same way by considering them invalid chunks.
94e0df5 to
401ff75
Compare
|
@nodejs/streams ... is this ready to go? |
|
All good for me. |
|
I plan to land this one today but I'm asking @thealphanerd to do a quick smoketest after landing 75487f0 |
this harmonizes behavior between readable, writable, and transform streams so that they all handle nulls in object mode the same way by considering them invalid chunks. PR-URL: #6170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
|
Landed in e7c077c |
this harmonizes behavior between readable, writable, and transform streams so that they all handle nulls in object mode the same way by considering them invalid chunks. PR-URL: nodejs#6170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
this harmonizes behavior between readable, writable, and transform streams so that they all handle nulls in object mode the same way by considering them invalid chunks. PR-URL: #6170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Checklist
Affected core subsystem(s)
Description of change
as discussed by @nodejs/streams
this harmonizes behavior between readable, writable, and transform
streams so that they all handle nulls in object mode the same way by
considering them invalid chunks.